#!/bin/bash

curl -LO "https://dl.k8s.io/release/$\(curl -L -s https://dl.k8s.io/release/stable.txt\)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv ./kubectl /usr/local/bin/kubectl
kubectl version

curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64
chmod +x ./kind

mv ./kind /usr/local/bin/kind
kind version

kubectl apply -f nginx_pod.yml

kind create cluster --config cluster_conf.yml
